/*
 * @Author: worldzb 
 * @Date: 2019-05-11 15:50:07 
 * @Last Modified by: worldzb
 * @Last Modified time: 2019-05-11 17:46:18
 */
import StatusBox from './Components/StatusBox';

class Search{

    constructor(){
        const statusBox = new StatusBox();
        let a=1;
        setTimeout(()=>{
            this.getMessage();
        },2000);
    }

    getMessage(){
        chrome.extension.sendMessage(  
            {
                type:'getMsg'
            },function(response) { 
                $('.key-input').val(response.keyword);
                setTimeout(()=>{
                    $('.search-btn').click();
                },1000);
            }
        );
    }

}


export default Search;